<%@ page language="java" pageEncoding="UTF-8"  contentType="text/html; charset=utf-8" %>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>xxx</title>
<link href="${pageContext.request.contextPath}/ui/css/style_cn.css" rel="stylesheet" type="text/css">
<script src="${pageContext.request.contextPath}/ui/js/jquery-1.4.2.js" type="text/javascript"></script>

<script type="text/javascript"> 
function mtitleChange(source)
{
	if(source.id!="menu_selected"){
		document.getElementById("menu_selected").className="menu_noselect";
		document.getElementById("menu_selected").id="menu_noselect";
		source.id="menu_selected";
		document.getElementById("menu_selected").className="menu_selected";
	}
  var url = source.url;
  window.frames["mtiframe"].location = url;
}

function autoFrameHeight(name,def) {
	var iframe = document.getElementById(name);
	if(def == undefined)
		def = 480;	//set default height
	if(iframe.readyState == "complete")	{
		var height = eval(name).document.body.scrollHeight;
		if(height<def)
			height = def;
		height += 20;
		iframe.style.height=height+"px";
	}
}
-->
</script>
</head>

<body>
	<div class="mtitle"><div class="mtitle-row">&nbsp;</div>
		<span id="menu_selected" class="menu_selected" onClick="mtitleChange(this)" url="${pageContext.request.contextPath}/crm/customer/base/edit.jsp">客户资料</span> 
		<span id="menu_noselect" class="menu_noselect" onClick="mtitleChange(this)" url="${pageContext.request.contextPath}/crm/customer/linkman/list.jsp">联系人</span>
		<span id="menu_noselect" class="menu_noselect" onClick="mtitleChange(this)" url="${pageContext.request.contextPath}/crm/customer/linktouch/list.jsp">联系记录</span>
		<span id="menu_noselect" class="menu_noselect" onClick="mtitleChange(this)" url="${pageContext.request.contextPath}/crm/customer/file/list.jsp">客户文档</span>
	</div>
	<br>
    <iframe width="100%" frameborder="0" id="mtiframe" scrolling="no" name="mtiframe" 
              src="${pageContext.request.contextPath}/crm/customer/base/edit.jsp" 
                             onreadystatechange="autoFrameHeight('mtiframe')">
    </iframe>
</body>
</html>
